`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Module: AUDIO_TOP                                                            //
// Author: Zhiyuan Lin                                                          //
// Date: 3/30/2014                                                              //
// Description: This module is the TOP module that combines everything.         //
// Signal: Sim_Song1, Sim_Song2 and Sim_Song3 are three different songs         //
//         Gain & Shutdown are AMP's default I/O, here we configure them to 1   //
//         Speaker is the output signal to drive the mono-Speaker.              //
//////////////////////////////////////////////////////////////////////////////////
module AUDIO_TOPV2(CLK, Gain, Shutdown, 
                   Speaker, LED, Play_END, Game_OVER,
						 R, G, B, HS, VS,  
						 Sim_Pause, Sim_Start, Sim_Restart,
                   Sim_Turbo, Sim_Song1, Sim_Song2, Sim_Song3,
                   Sim_Btn1, Sim_Btn2, Sim_Btn3, Sim_Btn4);
  	 input CLK;
	 output Speaker;
	 
    /*output [5:0] Tone;*/
	 output reg Shutdown = 1;
	 output reg Gain = 1;
	 output [7:0] LED;
	 wire [5:0] Tone;
	 
	 output [2:0] R, G;
    output [1:0] B;
    output HS;
    output VS;
	 
    output Play_END;
	 output Game_OVER;
	 
	 input Sim_Song1, Sim_Song2, Sim_Song3, 
	       Sim_Pause, Sim_Turbo, Sim_Start, Sim_Restart,
			 Sim_Btn1, Sim_Btn2, Sim_Btn3, Sim_Btn4;
			 			 

						 
AUDIO_TOP T2 (CLK, Speaker, LED, Tone, Play_END,
              Sim_Song1, Sim_Song2, Sim_Song3, 
	           Sim_Pause, Sim_Turbo, Sim_Start, Sim_Restart,
			     Sim_Btn1, Sim_Btn2, Sim_Btn3, Sim_Btn4);
				  
vga_display T3	(Tone, CLK, Game_OVER, Sim_Restart,
                Sim_Btn1, Sim_Btn2, Sim_Btn3, 
					 Sim_Btn4, Sim_Pause, Sim_Start, Sim_Turbo,
					 R, G, B, HS, VS);			  

endmodule
